/*
********************************************************************************
* Copyright (C) 2021, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : custom_log.h
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2021-01-12 version v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
                Compile command: make
********************************************************************************
*/
#ifndef __CUSTOM_LOG_H__
#define __CUSTOM_LOG_H__

#include "log_base.h"

class CCustomLog : public CLogBase
{
public:
    explicit CCustomLog(CLogBase *pLog)
    {
        mpLog = pLog;
    }

    virtual ~CCustomLog()
    {

    }

    virtual int WriteLog(const char *tag, const char *msg)
    {
        return mpLog->WriteLog(tag, msg);
    }

    virtual int SetLogLevel(int level)
    {
        return mpLog->SetLogLevel(level);
    }

private:
    CLogBase* mpLog;
};

#endif